<template>
  <div id="app-micro"></div>
</template>

<script lang="ts" setup>
import { onMounted, ref } from 'vue'
import { start } from 'qiankun'
import { useRoute, useRouter } from 'vue-router'

activated() {
  console.log('activated')
}

deactivated() {
  console.log('deactivated')
}
onMounted(() => {
  if (!window.qiankunStarted) {
    window.qiankunStarted = true
    start()
  } else {
    const router = useRouter()
    const route = useRoute()
  }
})

</script>